package com.xcity.pomelo.response;

import com.alibaba.fastjson.annotation.JSONField;
import com.xcity.game.conquests.Conquest;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class ConquestTaxResponse extends Response {
	
	@JSONField(name = "pid")
	protected long ownerId;
	@JSONField(name = "bid")
	protected int buildId;
	protected int gold;
	
	public ConquestTaxResponse(int serial, Conquest conquest, int gold) {
		super(serial);
		this.ownerId = conquest.getOwnerId();
		this.buildId = conquest.getId();
		this.gold = gold;
	}

	public long getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(long ownerId) {
		this.ownerId = ownerId;
	}

	public int getBuildId() {
		return buildId;
	}

	public void setBuildId(int buildId) {
		this.buildId = buildId;
	}

	public int getGold() {
		return gold;
	}

	public void setGold(int gold) {
		this.gold = gold;
	}

}
